package cn.bonoon.handler.impl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.bonoon.handler.RedirectToUserHome;
import cn.bonoon.kernel.security.LogonUser;

/**
 * 直接指定登录成功后跳转到的主页面
 * @author jackson
 *
 */
public class SimpleLoginSuccessRedirect implements RedirectToUserHome{
	
	private final String url;
	
	public SimpleLoginSuccessRedirect(String url){
		this.url = url;
	}

	@Override
	public String redirectUrl(HttpServletRequest request, HttpServletResponse response, LogonUser logonUser) {
		return url;
	}
}
